package com.gameapplet.stage.controller;

import com.gameapplet.stage.model.Stage;
import com.gameapplet.stage.service.Impl.StageServiceImpl;
import com.gameapplet.util.GetUUID;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.ArrayList;
import java.util.List;


@Controller
@RequestMapping("/examuser")//循环
public class StageController {
    @Resource
    StageServiceImpl stageServices;
    Stage stage;
    @RequestMapping("/stageinfo/{stagenum}")
    @ResponseBody
    public void setStageQuestionInfo(){
       List list =  stageServices.selectQuestionid();//700多道题
        List list1 = new ArrayList();
       //75个组 随机插入
        for(int i =0;i<list.size()/10;i++){//i循环75次
              list1.add(i);
        }

    }


}
